<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
<!--     <link rel="shortcut icon" href="../../assets/ico/favicon.png"> -->

    <title>aviso</title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap-3.1.1.css" rel="stylesheet" media="screen">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
        
	  

     
			<div class="col-md-12">
			
			  <form id="formAviso" name="formAviso" method="post" action="AviInsertar" class="form-horizontal well">
				<fieldset>
				  <legend>Registro de Aviso</legend>             
				  
				  <div class="control-group">
				  	  <label class="control-label" for="input01">TITULO:</label>
					  <div class="controls">
						<input type="text" name=txttitulo id=txttitulo class="input-medium" id="input01" style="width: 159px; " required>
						
					  </div>
					  <label class="control-label" for="input01">DESCRIPCION:</label>
					  <div class="controls">
						<input type="text" name=txtdescripcion id=txtdescripcion class="input-medium" id="input01" style="width: 306px; " required>
						
					  </div>
					  <label class="control-label" for="input01">FECHA:</label>
					  <div class="controls">
						<input type="date" name=txtfecha id=txtfecha class="input-medium" id="input01" style="width: 306px; " required>
						
					  </div>
					  
			              
				  </div>
				  </div>		
				<div class="form-actions">
				
					<button type="submit" class="btn btn-primary">Guardar</button>
				
					
						</div>
				</form>
				
				<form id="form1" name="form1" method="post" action="aviInsertar" class="form-horizontal" role="form">
		<div class="table-responsive">
		<table width="550" height="65" border="1" cellpadding="0" cellspacing="0" class="table table-hover">
		  <tr>
		   
		    <th width="192" scope="col">Titulo</th>
		    <th width="107" scope="col">Descripcion</th>
		    <th width="107" scope="col">Fecha</th>
		  
		  </tr>
		<%@page import="java.util.*, veterinaria.modelo.Aviso" %>
		<%
		Collection<Aviso> lista = (ArrayList<Aviso>)request.getAttribute("AVISO");
		if(lista != null) { 
		int i = 1;
		for(Aviso x : lista) {
		%>  
		  <tr>
		   
		    <td><% out.print(x.getTitulo()); %></td>
		    <td><% out.print(x.getDescripcion()); %></td>
		    <td><% out.print(x.getFecha()); %></td>
		   
		   
		  </tr>
		<% }  
		  } %>
		  
		</table>
		
		</div>
		</form>

      <footer>
        <p>David Ramirez Chiappe - u612039</p>
      </footer>

    </div> <!-- /container -->
    
     <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    
     <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery-1.10.2.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap-3.1.1.js"></script>

  </body>
</html>

